Builder

public final class Builder

A builder of MouseWheel.

Builders are created by invoking newBuilder. Each of the setter methods modifies the state of the builder and returns the same instance. Builders are not thread-safe and should not be used concurrently from multiple threads without external synchronization.

Functions

Link copied to clipboard
public MouseWheel build()
Returns a new MouseWheel instance built from the current state of this builder.
Link copied to clipboard
public MouseWheel.Builder deltaX(float deltaX)
Sets the number of units to scroll horizontally.
Link copied to clipboard
public MouseWheel.Builder deltaY(float deltaY)
Sets the number of units to scroll vertically.
Link copied to clipboard
Sets the keyboard modifiers applied.
Link copied to clipboard
public MouseWheel.Builder locationOnScreen(Point locationOnScreen)
Sets the mouse position relative to the bounds of the screen.
Link copied to clipboard
public MouseWheel.Builder scrollType(ScrollType scrollType)
Sets the scroll type of the event.